<?

ini_set('display_errors','1');
error_reporting(1);
	
require_once "core.php";
require_once SITE_ROOT_PATH."/_lib/classes/class.holiday_references.php";



$holiday_references = new holiday_references();


$params['limit']=20;
$top_destinations = $holiday_references->search_top_bookings($params);


foreach($top_destinations as $destination){

	$my_string .= $destination['destination_airport'].",";
	
}

$file_name = FILE_TOP_SEARCHES;
$fh = fopen($file_name, 'w') or die("can't open file");
fwrite($fh, $my_string);
fclose($fh);

